<template>
  <div class="content">
    <!-- 大图片 -->
    <div class="toptu" :style="top_img">
      <img src="../assets/image/logo2.png" alt="" />
      <!-- <h3 class="title">去中心化云计算业务一站式服务商</h3>
      <p>致力于成为全球最值得信赖的去中心化计算一站式服务领军者</p> -->
    </div>
    <!-- 中间内容 -->
    <div class="products">
      <!-- <div class="gscp">PRODUCT</div>
      <div class="gscphanzi">公司产品</div> -->
      <div class="proall">
        <div class="probox" v-for="item of product_list" :key="item.id">
          <div class="proboxrow1">
            <img :src="item.cover" alt="" />
            <span>{{ item.name }}</span>
          </div>
          <div class="proboxrow2">
            {{ item.note }}
          </div>
        </div>
      </div>
    </div>
    <!-- 底部 -->
  </div>
</template>

<script>
export default {
  data() {
    return {
      top_img: { background: '' },
      product_list: []
    }
  },
  mounted() {
    this.getIndexInfo()
  },
  methods: {
    async getIndexInfo() {
      const res = await this.axios.get('/api/bdweb/product')
      console.log(res.data.data)
      this.top_img.background = `url(${res.data.data.img.top_img})`
      this.product_list = res.data.data.product_list
    }
  }
}
</script>

<style scoped>
.content {
  width: 1920px;
}
.toptu {
  width: 1920px;
  height: 750px;
  background: no-repeat top left;
  background-size: 100% 100%;
  position: relative;
}
.toptu img {
  width: 213px;
  height: 92px;
  position: absolute;
  top: 217px;
  left: 218px;
}
.toptu .title {
  position: absolute;
  top: 334px;
  left: 218px;
  font-size: 50px;
  font-family: Microsoft YaHei;
  font-weight: bold;
  color: #ffffff;
  line-height: 30px;
  width: 800px;
}
.toptu p {
  position: absolute;
  top: 401px;
  left: 217px;
  font-size: 20px;
  font-family: Microsoft YaHei;
  font-weight: 400;
  color: #ffffff;
  line-height: 30px;
}
.toptu .el-button {
  position: absolute;
  left: 217px;
  top: 454px;
  width: 200px;
  height: 66px;
  background: #0594fe;
  border-radius: 10px;
  font-size: 30px;
  font-family: Microsoft YaHei;
  font-weight: bold;
  color: #ffffff;
  line-height: 30px;
}
.products {
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}
.gscphanzi {
  text-align: center;
  font-size: 60px;
  font-family: Microsoft YaHei;
  font-weight: 400;
  color: #2b2b2b;
  line-height: 23px;
  margin: 128px auto 93px auto;
  z-index: 999;
}
.gscp {
  position: absolute;
  top: 102px;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 60px;
  font-family: Helvetica;
  font-weight: bold;
  color: #cccccc;
  line-height: 23px;
  opacity: 0.6;
  z-index: 1;
}
.proall {
  width: 1590px;
  margin: 94px auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.probox {
  width: 1590px;
  height: 300px;
  background: #ffffff;
  box-shadow: 0px 0px 5px 0px rgba(204, 204, 204, 0.6);
  border-radius: 15px;
  box-sizing: border-box;
  margin-bottom: 70px;
}
.proboxrow1 {
  display: flex;
  align-items: center;
  padding: 33px 74px;
}
.proboxrow1 > img {
  width: 40px;
  height: 40px;
}
.proboxrow1 > span {
  padding-left: 12px;
  font-size: 24px;
  font-family: Microsoft YaHei;
  font-weight: bold;
  color: #2b2b2b;
  line-height: 23px;
}
.proboxrow2 {
  padding: 0 75px;
  font-size: 20px;
  font-family: Microsoft YaHei;
  font-weight: 300;
  color: #2b2b2b;
  word-wrap: break-word;
  line-height: 30px;
  margin-top: 24px;
}
</style>
